﻿using Ags.MonsterTools.Common;
using Microsoft.Practices.EnterpriseLibrary.Logging;
using Microsoft.Practices.Prism.Logging;

namespace Ags.MonsterTools
{
    public class LoggerImpl : ILoggerFacade, ILogger
    {
        public LoggerImpl()
        {
            Logger.SetLogWriter(new LogWriterFactory().Create());
        }

        public void Log(string message, Category category, Priority priority)
        {
            Logger.Write(message);
        }

        public void Log(string message)
        {
            Log(message, Category.Info, Priority.None);
        }
    }
}
